Swank-Connected-P names a function, with lambda list NIL:
Is Swank currently connected to this Lisp image?
Defined in file src/main.lisp.